package com.sheng.sign.service;

import java.util.List;

import com.sheng.sign.dao.UserDao;
import com.sheng.sign.entity.User;

public class UserServiceImpl implements UserService{
    private UserDao userDao;
	
	public boolean register(User user) {
		System.out.println("==来到了serviceImpl=="+user);
		return userDao.register(user);
	}
	public User login(User user) {
		return userDao.login(user);
	}
	
	public UserDao getUserDao() {
		return userDao;
	}
	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}
	@Override
	public List<User> findAllList() {
		return userDao.findAllList();
	}
	@Override
	public User findById(User user) {
		return userDao.findById(user);
	}
	@Override
	public boolean edit(User user) {
		return userDao.edit(user);
	}
	@Override
	public boolean delete(User user) {
		return userDao.delete(user);
	}
	@Override
	public List<User> findByUserId(User user) {
		return userDao.findByUserId(user);
	}

}
